package com.ytktt.study.week7.task9;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 读写分离测试项目启动器
 *
 * @author ytk
 */
@Slf4j
@EnableTransactionManagement(order = 2)
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@MapperScan("com.ytktt.study.week7.task9.mapper")
public class ReadWrite1Application {

    public static void main(String[] args) {
        SpringApplication.run(ReadWrite1Application.class, args);
    }
}
